<%-- 
    Document   : login
    Created on : Apr 27, 2013, 10:33:19 PM
    Author     : fikri
--%>
<%@ include file="/WEB-INF/jsp/include/page_header.jspf" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <script type="text/javascript">
            $(document).ready(function(){
                if(${actionBean.doLock}){
                    var frm = document.forms.form1;
                    var url = '${pageContext.request.contextPath}/login';
                    frm.action = url;
                    frm.submit();
                }
            });
        </script>
    </head>
    <body>
        <s:messages/>
        <s:errors/>
        <div id="page-title">
            <span class="title">Login to Marine Audit & Task System</span>
        </div>
        <br>

        <div id="page-content">                 
            <section class="container">           
                <div class="login">
                    <s:form beanclass="exatrez.stripes.LoginActionBean" name="form1">
                        <p><input type="text" name="userLogin" placeholder="User ID" onblur="this.value = this.value.toLowerCase();"></p>
                        <p><input type="password" name="userPassword" placeholder="Password"></p>
                        <p>
                            <s:submit name="login" value="Login" class="btn"/>
                        </p>
                    </s:form>
                </div>

                <!--                <div class="login-help">
                                    <p>Forgot your password? Click here to reset it</p>
                                </div>-->
            </section>
        </div>

        <div class="cleaner"></div>
    </body>
</html>
